<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>正则表达式中的排除匹配</title>
</head>
<body>
    <script>
        let hd = "jash*&sa+56643";
        // 原子表的开始加^，表示除了后面的匹配的元素
        let reg = /[^\d+*&]/g;
        console.log(hd.match(reg));
    </script>
</body>
</html>